boxlayout: Add a baseline child property
authorMatthias Clasen <mclasen@redhat.com>
Thu, 27 Apr 2023 12:57:09 +0000 (14:57 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 29 Apr 2023 17:28:55 +0000 (13:28 -0400)
commit2d9ae241d5fb3fdaa85c9b0562fb78a2f97325a0
tree7f06f5f9f2f251919ac62e6370689115f07dd81c
parent825eb935099e11dee7210bcbeba934c7053613ba
boxlayout: Add a baseline child property

In horizontal layout, we line up the baselines of all children to find
how much space we need above and below the box baseline.

In vertical layout, we need to pick one child to inherit the baseline
from, which is what the new GtkBoxLayout:baseline-child property is
about. It is the equivalent of GtkGridLayout:baseline-row.
gtk/gtkbox.c
gtk/gtkbox.h
gtk/gtkboxlayout.c
gtk/gtkboxlayout.h